package com.Common;

import java.io.Serializable;

/**
 * @description:
 * @author: hkw14
 * @time: 2021/4/28 15:03
 */
public class Result implements Serializable {

    private static final long serialVersionUID = 1299192636567579601L;
    /**
     * 业务响应码
     */
    private Integer code = 200;
    /**
     * 业务消息
     */
    private String msg = "SUCCESS";

    /**
     * 业务数据
     */
    private Object data;
    public Result (CodeMsg codeMsg){
        this.code = codeMsg.code;
        this.msg = codeMsg.msg;
    }
    public Result() { }
    public Result(Object data){
        this.data = data;
    }
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
